﻿using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;

namespace GPBenhLanh
{
    public partial class rptBCThuLao_TH : DevExpress.XtraReports.UI.XtraReport
    {
        public rptBCThuLao_TH()
        {
            InitializeComponent();
        }

        private void xrTableCell6_TextChanged(object sender, EventArgs e)
        {
            XRTableCell ctr = (XRTableCell)sender;
            int o;
            if (int.TryParse(ctr.Text, out o))
                ctr.Text = Convert.ToInt32(ctr.Text).ToString("#,#");
            else
                return;
        }

        private void xrTableCell8_TextChanged(object sender, EventArgs e)
        {
            XRTableCell ctr = (XRTableCell)sender;
            int o;
            if (int.TryParse(ctr.Text, out o))
                ctr.Text = Convert.ToInt32(ctr.Text).ToString("#,#");
            else
                return;
        }

        private void xrTableCell9_TextChanged(object sender, EventArgs e)
        {
            XRTableCell ctr = (XRTableCell)sender;
            int o;
            if (int.TryParse(ctr.Text, out o))
                ctr.Text = Convert.ToInt32(ctr.Text).ToString("#,#");
            else
                return;
        }

        private void xrTableCell7_TextChanged(object sender, EventArgs e)
        {
            XRTableCell ctr = (XRTableCell)sender;
            int o;
            if (int.TryParse(ctr.Text, out o))
                ctr.Text = Convert.ToInt32(ctr.Text).ToString("#,#");
            else
                return;
        }

        private void xrTableCell10_TextChanged(object sender, EventArgs e)
        {
            XRTableCell ctr = (XRTableCell)sender;
            int o;
            if (int.TryParse(ctr.Text, out o))
                ctr.Text = Convert.ToInt32(ctr.Text).ToString("#,#");
            else
                return;
        }

        private void xrTableCell11_TextChanged(object sender, EventArgs e)
        {
            XRTableCell ctr = (XRTableCell)sender;
            int o;
            if (int.TryParse(ctr.Text, out o))
                ctr.Text = Convert.ToInt32(ctr.Text).ToString("#,#");
            else
                return;
        }

        private void xrTableCell12_TextChanged(object sender, EventArgs e)
        {
            XRTableCell ctr = (XRTableCell)sender;
            int o;
            if (int.TryParse(ctr.Text, out o))
                ctr.Text = Convert.ToInt32(ctr.Text).ToString("#,#");
            else
                return;
        }

        private void xrTableCell13_TextChanged(object sender, EventArgs e)
        {
            XRTableCell ctr = (XRTableCell)sender;
            int o;
            if (int.TryParse(ctr.Text, out o))
                ctr.Text = Convert.ToInt32(ctr.Text).ToString("#,#");
            else
                return;
        }

        private void xrTableCell14_TextChanged(object sender, EventArgs e)
        {
            XRTableCell ctr = (XRTableCell)sender;
            int o;
            if (int.TryParse(ctr.Text, out o))
                ctr.Text = Convert.ToInt32(ctr.Text).ToString("#,#");
            else
                return;
        }

        private void xrTableCell3_TextChanged(object sender, EventArgs e)
        {
            XRTableCell ctr = (XRTableCell)sender;
            int o;
            if (int.TryParse(ctr.Text, out o))
                ctr.Text = Convert.ToInt32(ctr.Text).ToString("#,#");
            else
                return;
        }

        private void xrTableCell2_TextChanged(object sender, EventArgs e)
        {
            XRTableCell ctr = (XRTableCell)sender;
            int o;
            if (int.TryParse(ctr.Text, out o))
                ctr.Text = Convert.ToInt32(ctr.Text).ToString("#,#");
            else
                return;
        }

        private void txtTongGiaTri_TextChanged(object sender, EventArgs e)
        {
            XRTableCell ctr = (XRTableCell)sender;
            int o;
            if (int.TryParse(ctr.Text, out o))
                ctr.Text = Convert.ToInt32(ctr.Text).ToString("#,#");
            else
                return;
        }

        private void xrTableCell5_TextChanged(object sender, EventArgs e)
        {
            XRTableCell ctr = (XRTableCell)sender;
            int o;
            if (int.TryParse(ctr.Text, out o))
                ctr.Text = Convert.ToInt32(ctr.Text).ToString("#,#");
            else
                return;
        }

    }
}
